package com.mef.smsplat.dao;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.cqcis.base.orm.jdbc.BaseJdbcDao;
import com.mef.smsplat.dao.base.BaseSpringJdbcDao;
import com.mef.smsplat.dao.base.DataGridModel;
import com.mef.smsplat.dao.base.Page;
import com.mef.smsplat.domain.SmsOpraInfoDomain;
import com.mef.smsplat.domain.SysAdminInfoDomain;

@Repository
public class SmsOpraInfoDao extends BaseSpringJdbcDao<SmsOpraInfoDomain, String> {
	
	/**
	 * 根据短信发送历史查询
	 * @param smsHistoryId
	 * @return
	 */
	public List<SmsOpraInfoDomain> query(String smsHistoryId){
		String sql="select * from sms_opra_info t where t.sms_History_Id=?";		
		return super.query(sql, new Object[]{smsHistoryId});
	}
	

	@Override
	public BaseJdbcDao getDaoClass() {
		return this;
	}

	@Override
	public Class getEntityClass() {
		return SmsOpraInfoDomain.class;
	}

}
